<?php

$url = $this->context->id . '/' . $this->context->action->id;
?>
<?= \common\widgets\Asset::widget(['type'=>['summernote']])?>
    <style>
        input{
            width: 20% !important;
            display: inline !important;
        }
    </style>
    <div class="ui-layout-center ui-layout-pane">
        <div class="container-div">
            <div class="row">
                <div class="col-sm-12 search-collapse" style="display: block">
                    <div class="layui-card-body">
                        <div class="layui-collapse like-layui-collapse" lay-accordion=""
                             style="border:1px dashed #c4c4c4">
                            <div class="layui-colla-item">
                                <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示<i
                                        class="layui-icon layui-colla-icon"></i></h2>
                                <div class="layui-colla-content layui-show">
                                    <p>*具体请仔细看配置说明；</p>
                                    <p>*佣金抽成：是指用户在某个校区购买商品，并确实后所获得的佣金；</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <form class="form-horizontal" id="form-config-site-site">
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">佣金抽成：</label>
                            <div class="col-sm-9">
                                <input type="text" name="ca_percentage" value="<?= $model->ca_percentage ?>" class="form-control"
                                       autocomplete="off" required> &emsp;%
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 如果抽成设置为3%，抽成=佣金*3/100，设置成0将不进行抽成</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">提现手续费：</label>
                            <div class="col-sm-9">
                                <input type="text" name="ca_withdraw_fee" value="<?= $model->ca_withdraw_fee ?>" class="form-control"
                                       autocomplete="off" required> &emsp;%
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 如果提现手续费设置为3%，抽成=佣金*3/100，设置成0没有手续费</span>
                            </div>
                        </div>
                        <div class="form-group text-center mt20">
                            <a href="javascript:;" class="btn btn-success btn-mid b5submit_btn"
                               data-target="form-config-site-site" data-title="确定提交信息设置"
                               data-url="<?= \yii\helpers\Url::to(['system/tran']) ?>">保存</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $this->beginBlock('script'); ?>
    <script>
        function b5submit_btn_before() {
            return true;
        }
    </script>
<?php $this->endBlock(); ?>